package com.znsd.zl.collect.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.znsd.zl.browse.entity.vo.TBrowseEntityVo;
import com.znsd.zl.collect.entity.CollectEntity;

import java.util.List;

/**
 * @ClassName CollectService
 * @Description 收藏service接口
 * @author xyx
 * @date 2020-08-28 14:48:33
 * @Version v1.0
 */
public interface CollectService extends IService<CollectEntity> {

	/**
	 * 收藏增加
	 * @param entity
	 * @return boolean
	 */
	boolean collectSave(CollectEntity entity);

	/**
	 * 收藏删除
	 * @param entity
	 * @return boolean
	 */
	boolean deleteCollect(CollectEntity entity);

	/**
	 * 按用户Id查询收藏记录
	 * @param appid
	 * @return List<TBrowseEntityVo>
	 */
	List<TBrowseEntityVo> findList(Integer appid);

	/**
	 * 查询收藏状态
	 * @param entity
	 * @return boolean
	 */
	boolean findStatus(CollectEntity entity);

	/**
	 * 查询对应房源图片
	 * @param houseId
	 */
	void findImages(Integer houseId);
}

